package com.tebiecloud.retail.client.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.tebiecloud.common.mybatis.base.entity.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 分销的订单
 * @author tebie
 * @date 2019-09-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class RetailOrder extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 分销订单id
     */
    @TableId(value = "retail_order_id", type = IdType.ID_WORKER)
    private Long retailOrderId;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 父一级userid
     */
    private Long poneUserId;

    /**
     * 父二级user_id
     */
    private Long ptwoUserId;

    /**
     * 父三级userid
     */
    private Long pthreeUserId;

    /**
     * 订单状态，0已取消1待付款2待分销4已分销6已退款
     */
    private Integer status;

}
